package nl.stroep.classbuilder.project 
{
	import nl.stroep.classbuilder.utils.ObjectUtil;
	import nl.stroep.classbuilder.utils.XMLUtil;
	public class Settings
	{
		public var author:String;
		
		public function Settings() 
		{
			
		}
		
		public function toXML():XML
		{
			var xml:XML = new XML(<settings/>);
			xml.appendChild( XMLUtil.getNode( "author", author) );
			
			return xml;
		}
		
		public static function parseData(xml:XMLList):Settings
		{
			var settings:Settings = new Settings();
			settings.author = ObjectUtil.parseString( xml.author.text() );
			
			return settings;
		}
		
	}

}